import { createBrowserRouter,Navigate } from "react-router-dom";
import App from "../App1"
import Hang from "../pages/Hang"
import Ke from "../pages/Ke"
import Login from "../pages/Login"
import Shou from "../pages/Shou"
import Xin from "../pages/Xin"
import Yuan from "../pages/Yuan"



const router = createBrowserRouter([
    {path:"/app",element:<App></App>,children:[
        {path:'/app/shou',element:<Shou></Shou>},
        {path:'/app/xin',element:<Xin></Xin>},
        {path:'/app/ke',element:<Ke></Ke>,children:[
            {path:'/app/ke/yuan',element:<Yuan></Yuan>},
            {path:'/app/ke/hang',element:<Hang></Hang>},
        ]},
    ]},
    {path:"/login",element:<Login></Login>},


    {path:'/',element:<Navigate to='/app/shou'></Navigate>}
])


export default router